package com.example.mycnblog.mapper;

import com.example.mycnblog.entity.Articleinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int getArtCountByUid(@Param("uid") Integer uid);

    List<Articleinfo> getMyList(@Param("uid") Integer uid);

    int del(@Param("id")Integer id,@Param("uid")Integer uid);

    Articleinfo getDetail(@Param("id") Integer id);

    int incrRCount(@Param("id") Integer id);

    int add(Articleinfo articleinfo);

    int update(Articleinfo articleinfo);

    List<Articleinfo> getListByPage(@Param("psize")Integer psize,@Param("offsize")Integer offsize);

    List<Articleinfo> getList();

    int getCount();

}
